package com.glsc.ngateway.common.base.repo.mysql.gateway.platform.system;

import com.glsc.ngateway.common.base.domain.mysql.gateway.system.SystemMainContact;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SystemMainContactRepository extends JpaRepository<SystemMainContact, Integer>, JpaSpecificationExecutor<SystemMainContact> {

    void deleteByOpId(Integer opId);

    List<SystemMainContact> queryAllByOpId(Integer opId);
}